package com.account.book.service;

import com.account.book.entity.BookMoney;
import com.account.book.request.BookMoneyQueryReqVo;
import com.account.book.response.BookMoneyCountRes;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 账本记账金额表 服务类
 * </p>
 *
 * @author wky
 * @since 2022-04-02
 */
public interface BookMoneyService extends IService<BookMoney> {

    /**
     * @param @param bookMoneyQueryReqVo
     * @return @return {@link BookMoneyCountRes }
     * @author liang-hw
     * @description 查询对应账本列表
     * @date 2024/01/10 09:50:46
     */
    BookMoneyCountRes findList(BookMoneyQueryReqVo bookMoneyQueryReqVo);

    /**
     * @param @param bookMoneyQueryReqVo
     * @return @return {@link BookMoneyCountRes }
     * @author liang-hw
     * @description 查询收支数量
     * @date 2024/01/10 09:52:16
     */
    BookMoneyCountRes total(BookMoneyQueryReqVo bookMoneyQueryReqVo, String userId);

    /**
     * 记一笔
     *
     * @param bookMoney
     */
    void addSave(BookMoneyQueryReqVo bookMoneyQueryReqVo, String userId);

    /**
     * 修改一笔
     *
     * @param bookMoney
     */
    void update(BookMoneyQueryReqVo bookMoneyQueryReqVo, String userId);

    /**
     * 删除一笔
     *
     * @param moneyId
     */
    void delete(String moneyId, String userId);

}
